import request from '@/utils/request'
export function list(params) {
  return request({
    url: '/admin/order/list',
    method: 'get',
    params: params
  })
}
// export function save(data) {
//   return request({
//     url: '/admin/customer/save',
//     method: 'post',
//     data: data
//   })
// }

export function del(ids) {
  return request({
    url: '/admin/order/del/' + ids,
    method: 'post'
  })
}

export function find(id) {
  return request({
    url: '/admin/order/find/' + id,
    method: 'get'
  })
}

export function update(data) {
  return request({
    url: '/admin/order/update',
    method: 'post',
    data: data
  })

}


export function complete(data) {
  return request({
    url: '/admin/order/complete',
    method: 'post',
    data: data
  })
}


export function payment(data) {
  return request({
    url: '/admin/order/payment',
    method: 'post',
    data: data
  })
}

export function confirm(data) {
  return request({
    url: '/admin/order/confirm',
    method: 'post',
    data: data
  })
}

export function cancel(data) {
  return request({
    url: '/admin/order/cancel',
    method: 'post',
    data: data
  })
}
